  <?

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDTour";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/MDTourGeneral/CDrawPageReg.php");
include_once("$ruta/MDTourGeneral/CTourEditDraw.php");

$case = $_POST['variable'];
CTourEditDraw::getInstance()->HiddenValue($case,"opcion_act");
  
  
  if($case == "case"){
    
    echo "<h2>Definiendo nuevo módulo</h2>";
  
    $actividad_val = array (":required","",":required",":url","");
    $actividad = array("NomAct"=>"Nombre del módulo","PlaceAct"=>"Lugar de la actividad");
    CDrawPageReg::getInstance()->DrawTextBox($actividad,$actividad_val);
    

    $comments2 = array ("DesSer"=>"Descripción del módulo");
    $val_comments2 = array (":min_length;0 :max_length;255");
    CDrawPageReg::getInstance()->DrawTextBoxArea($comments2,$val_comments2);

    
    $val_serv = array ("",":required",":url","");
    $serv_operador = array("CanIteRec"=>"Cantidad","PriUni"=>"Precio Unitario");
    CDrawPageReg::getInstance()->DrawTextBox($serv_operador,$val_serv);
         
}

else{
    
      
    $val2 = array (":required",":integer",":float");
    $operador2 = array("NomAct"=>"Nombre del módulo","PlaceAct"=>"Lugar de la actividad");
    CTourEditDraw::getInstance()->DrawTextFillBox("",$operador2,"actividades","idAct",$case,$val2);
    
    $val_serv = array ("",":required",":url","");
    $serv_operador = array("CanIteRec"=>"Cantidad","PriUni"=>"Precio Unitario");
    CDrawPageReg::getInstance()->DrawTextBox($serv_operador,$val_serv);
    
    
    $field = array ("idAct","DescAct");
    //$val_comments2 = array (":min_length;0 :max_length;255");
    CTourEditDraw::getInstance()->DrawAreaFill("Descripción del módulo (puede personalizar)","actividades",$field,$case);
  
    
}


?>